package com.wxm.killing.mq.common.enums;

import lombok.Getter;

@Getter
public enum HttpStatusEnum {
    OK(200, "请求成功"),
    FAIL(201, "处理失败"),
    UNAUTHORIZED(401, "没有被授权或者授权已经失效"),
    INTERNAL_SERVER_ERROR(500, "服务器开小差了"),
    BAD_REQUEST(600, "请求参数有误"),
    PARAM_PAGE_ERROR(700, "分页参数有误");

    private final int status;
    private final String msg;

    HttpStatusEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
